<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<link rel="shortcut icon" href="favicon.ico" /> <title>Sistema Agropecuario</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<p:dock position="top" id="dock_menu" itemWidth="75" >
    <p:menuitem value="Inicio"  icon="/images/casa_final.jpg" url="../index.jsf"/>
    <p:menuitem value="Ventas"  icon="/images/ventas_final.jpg" url="../ventas.jsf"/>
    <p:menuitem value="Compras" icon="/images/compras_final.jpg" url="../compras.jsf"/>
    <p:menuitem value="Almac&eacute;n"  icon="/images/almacen_final.jpg" url="../almacen.jsf"/>
    <p:menuitem value="Finanzas"  icon="/images/finanzas_final.jpg" url="../finanzas.jsf"/>

</p:dock>
</h:head>
<h:body>
<div class="main">
  <div class="header">
    <div class="logo">
       </div>
    <div class="menu">

    </div>
  </div>
  <div class="clr"></div>
  <div class="block_header">
    <div class="slider">
    <p:growl id="growl" showDetail="true"/>

       <p:panel header="M&oacute;dulo de Administración" >

<h:form id="frm123">

 <p:fieldset id="fielset"  legend="Datos de Filtrado" style="margin-top:10px">
            <h:panelGrid id="pnl1" columns="2">


                <p:calendar id="feth1" effect="slide" locale="es" value="#{managedBeanReportando.fecha_inicio}" pattern="dd/MM/yyyy"/>
                <p:calendar id="feth2" effect="slide" locale="es" value="#{managedBeanReportando.fecha_fin}" pattern="dd/MM/yyyy"/>

                <p:commandButton value="Generar Reportes" action="#{managedBeanReportando.Generar_ReportesTotales}" update="frm123" actionListener="#{managedBeanReportando.addInfo}"/>
            </h:panelGrid>
            <p:separator />

            <p:messages showDetail="true" autoUpdate="true"/>


                       </p:fieldset>



        <h:outputLink title="Descargar los Reportes" value="#{managedBeanReportando.nombre_reporte}" >
                 <h:graphicImage value="../images/winrar.png"/>
            </h:outputLink>

    </h:form>

<p:separator />
 <h:form id="frm_reportes2_2">
     <center>     <h:commandLink  action="#{managedBeanReportando.Volver_Reporte}"  >
       <p:graphicImage  value="../images/inicio1.jpg" />
</h:commandLink></center>
            </h:form>

    </p:panel>
    </div>
  </div>
  <div class="clr"></div>

  <div class="clr"></div>

  <div class="clr"></div>
</div>

</h:body>
</html>